// index.js 内容
// http://192.168.20.149:16666/ffmpeg.html?rtspUrl=rtsp://admin:hk12345678@192.168.10.201:554/Streaming/Channels/1301
 
const RTSP2web = require('rtsp2web');
 
// 服务端长连接占据的端口号；端口号可以自定义
const port = 10012;
new RTSP2web({
	port,
	wm:false,
	audio:true,
	q:0,
	freeTime:4,
	checkTime:2,
	// ['tcp', 'udp', 'udp_multicast', 'http', 'https']
	transportType:'tcp'
});
